<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "speak_person".
 *
 * @property integer $id
 * @property string $uid
 * @property string $introurl
 * @property string $theme
 * @property string $hand1
 * @property string $hand2
 */
class Speak_person extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'speak_person';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid', 'introurl', 'theme', 'hand1', 'hand2'], 'required'],
            [['uid'], 'integer'],
            [['theme', 'hand1', 'hand2'], 'string'],
            [['introurl'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => 'Uid',
            'introurl' => 'Introurl',
            'theme' => 'Theme',
            'hand1' => 'Hand1',
            'hand2' => 'Hand2',
        ];
    }
}
